﻿@model IEnumerable<Gagnatek.WebSite.Models.Medias>
@{
    ViewBag.Title = "Home Page";
}
@using (Html.BeginForm("Search", "Home"))
{
    <label for="search">
        Search:
    </label>
    <input type="text" name="search" id="search" />
    <input type="submit" value="Search" />
}
<br />
<table cellspacing="10">
    <tr>
        <td>
            <b><u> Name :</u></b>
        </td>
        <td>
            <b><u>Authors :</u></b>
        </td>
    </tr>
    <tr>
        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.ActionLink(item.name, "Details", "Medias", new { id = item.id }, null)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.Authors.name)
                </td>
            </tr>
        }
    </tr>
</table>
